{include file="header.html"}
<div id="rightTop">
  <p>用户</p>
  <ul class="subnav">
      <li><span>{$lang.manage}</span></li>
      <li><a class="btn1" href="index.php?app=wdexuser&amp;act=add">添加客户</a></li>
  </ul>
</div>

<div class="mrightTop">
  <div class="fontl">
    <form method="get">
       <div class="left">
          <input type="hidden" name="app" value="wdexuser" />
          <input type="hidden" name="act" value="index" />
           <select class="querySelect" name="fx">
          <option value="">选择客户类型</option>
          <option value="1" {if $smarty.get.fx==1}selected{/if}>放箱客户</option>
          <option value="2" {if $smarty.get.fx==2}selected{/if}>要箱客户</option>
          </select>
          <select class="querySelect" name="field_name">{html_options options=$query_fields selected=$smarty.get.field_name}
          </select>
         
          <input class="queryInput" type="text" name="field_value" value="{$smarty.get.field_value|escape}" />
          {$lang.sort_order}:
          <select class="querySelect" name="sort">{html_options options=$sort_options selected=$smarty.get.sort}
          </select>
         是否认证:
          <select class="querySelect" name="hasdepot">{html_options options=$hasdepot selected=$smarty.get.hasdepot}
          </select>
          <input type="submit" class="formbtn" value="{$lang.query}" />
      </div>
    </form>
  </div>
  <div class="fontr">{include file=page.top.html}</div>
  <div class="clear:both;"></div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $users}-->
    <tr class="tatr1">
      <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
      <td>类型 </td> 
      <td>用户名 </td>   
      <td>手机</td>
      <td>绑定仓库</td>
      <td><span ectype="order_by" fieldname="reg_time">注册时间</span></td>
      <td><span ectype="order_by" fieldname="last_login">最后登录</span></td>
      <td><span ectype="order_by" fieldname="logins">登录次数</span></td>
      <td>是否禁用</td>
      <td class="handler">{$lang.handler}</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$users item=user}-->
    <tr class="tatr2">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="{$user.user_id}" /></td>
      <td>{if $user.fx}放箱客户{else}要箱客户{/if}</td>
      <td>{$user.user_name|escape} </td>
      <td>{$user.phone_tel|default:-}</td>
      <td>{$user.depot_name}</td>
     
      <td>{$user.reg_time|date:Y-m-d H:i|default:-}</td>
      <td><!--{if $user.last_login}-->{$user.last_login|date}<!--{/if}--><br />
        {$user.last_ip}</td>
      <td>{$user.logins}</td>
      <td>
        <!-- {if $user.del} -->
            <img src="{res file=style/images/positive_enabled.gif}" ectype="inline_edit" fieldname="del" fieldid="{$user.user_id}" fieldvalue="1" title="{$lang.editable}"/>
            <!--{else}-->
            <img src="{res file=style/images/positive_disabled.gif}" ectype="inline_edit" fieldname="del" fieldid="{$user.user_id}" fieldvalue="0" title="{$lang.editable}"/>
            <!-- {/if} -->
      </td>
      <td class="handler">
      <span style="width: 100px">
      <a href="index.php?app=wdexuser&amp;act=edit&amp;id={$user.user_id}">{$lang.edit}</a> | <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=wdexuser&amp;act=drop&amp;id={$user.user_id}');">{$lang.drop}</a>
        <!-- {if $user.store_id} -->
        | <a href="index.php?app=store&amp;act=edit&amp;id={$user.store_id}" onclick="parent.openItem('store_manage', 'store');">{$lang.store}</a>
        <!-- {/if} -->
      </span>
      </td>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data">
      <td colspan="10">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $users}-->
  <div id="dataFuncs">
    <div id="batchAction" class="left paddingT15"> &nbsp;&nbsp;
      <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=wdexuser&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
    </div>
    <div class="pageLinks">{include file=page.bottom.html}</div>
    <div class="clear"></div>
  </div>
  <!--{/if}-->
</div>
{include file="footer.html"}